const fs=require('fs')
const data='nodejs服务端编程'
fs.writeFile('./node,txt',data,err=>{
    if(err){
        console.log(err);
    }else{
        console.log("文件写入成功");
    }
})